package org.example.inventory.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

//销售
public class Sale extends BaseEntity {
    private Integer productId;
    private Integer quantity;
    private BigDecimal salePrice;
    private Integer operatorID;
    private LocalDateTime saleDate;

    public Sale(Integer id, Integer productId, Integer quantity, BigDecimal salePrice, Integer operatorID, LocalDateTime saleDate) {
        this.id = id;
        this.productId = productId;
        this.quantity = quantity;
        this.salePrice = salePrice;
        this.operatorID = operatorID;
        this.saleDate = saleDate;
    }

    public Sale() {
    }

    public Sale(Integer productId, Integer quantity, BigDecimal salePrice, Integer operatorID) {
        this.productId = productId;
        this.quantity = quantity;
        this.salePrice = salePrice;
        this.operatorID = operatorID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    public Integer getOperatorID() {
        return operatorID;
    }

    public void setOperatorID(Integer operatorID) {
        this.operatorID = operatorID;
    }

    public LocalDateTime getSaleDate() {
        return saleDate;
    }

    public void setSaleDate(LocalDateTime saleDate) {
        this.saleDate = saleDate;
    }
}
